import Vue from "vue";
import VueRouter from "vue-router";
import layout from "./../components/container";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    redirect: "/home",
    component: layout,
    children: [
      {
        path: "/home",
        name: "home",
        component: () => import("@/views/Home/index.vue")
      },
      {
        path: "/qyrydwgl/qyrydwglbjgl",//企业人员定位管理报警管理
        component: () => import("@/views/qyrydwgl/qyrydwglbjgl/qyrydwglbjgl.vue")
      },
      {
        path: "/qyscyfgl/scyfglsy", //双重预防管理首页
        component: () => import("@/views/qyscyfgl/scyfglsy/scyfglsy.vue")
      },
      {
        path: "/qyqlczhgl/sbssgl",//设备设施管理
        component: () => import("@/views/qyqlczhgl/sbssgl/sbssgl.vue")
      },
      {
        path: "/qyqlczhgl/stsgl",//三同时管理
        component: () => import("@/views/qyqlczhgl/stsgl/stsgl.vue")
      },
      {
        path: "/qyscyfgl/qyfxfqzhcx", //企业风险分区综合查询
        component: () => import("@/views/qyscyfgl/qyfxfqzhcx/qyfxfqzhcx.vue"),
      },
      {
        path: "/qyscyfgl/qyfxfjgk", //企业风险分级管控
        component: () => import("@/views/qyscyfgl/qyfxfjgk/qyfxfjgk.vue")
      },
      {
        path: "/qyqlczhgl/zyaqgl", //作业安全管理
        component: () => import("@/views/qyqlczhgl/zyaqgl/zyaqgl.vue")
      },
      {
        path: "/qyqlczhgl/bggl",  //变更管理
        component: () => import("@/views/qyqlczhgl/bggl/bggl.vue")
      },
      {
        path: "/qyqlczhgl/mbzr",//目标责任
        component: () => import("@/views/qyqlczhgl/mbzr/mbzr.vue")
      },
      {
        path: "/qyqlczhgl/bggl",
        component: () => import("@/views/qyqlczhgl/bggl/bggl.vue")
      },
      {
        path: "/qyqlczhgl/aqscfygl",
        component: () => import("@/views/qyqlczhgl/aqscfygl/aqscfygl.vue")
      },
      {
        path: "/qyscyfgl/qyyhpc", //企业隐患排查
        component: () => import("@/views/qyscyfgl/qyyhpc/qyyhpc.vue")
      },
      {
        path: "/qyscyfgl/qyyhzl", //企业隐患治理
        component: () => import("@/views/qyscyfgl/qyyhzl/qyyhzl.vue")
      },
      // {
      //   path: "/qyscyfgl/qyfxypycngs", //企业风险研判与承诺公示
      //   component: () => import("@/views/qyscyfgl/qyfxypycngs/qyfxypycngs.vue")
      // },
      {
        path: "/qyscyfgl/qyskgl",  //企业三卡管理
        component: () => import("@/views/qyscyfgl/qyskgl/qyskgl.vue")
      },
    ]
  },
  {
    path:"/qyqlczhgl/tszygltj", //特殊作业管理
    component: () => import("@/views/qyscyfgl/tszygltj/tszygltj.vue")
  },
  {
    path: "/qyrydwgl/qyrydwglsy",//企业人员定位管理首页
    component: () => import("@/views/qyrydwgl/qyrydwglsy/qyrydwglsy.vue")
  },
];

const router = new VueRouter({
  routes
});

export default router;
